package com.googlecode.montelin.server.domain;

import javax.persistence.PrePersist;

import com.googlecode.objectify.annotation.Entity;
import com.googlecode.objectify.annotation.Unindexed;

@Entity
@Unindexed
public class AbstractEntity {
	int version;

	public int getVersion() {
		return version;
	}

	@PrePersist
	void onPersist() {
		++this.version;
	}
}
